//
//  AVDClientBufferSocketManager.h
//  
//
//  Created by zqj on 2020/09/11.
//  Copyright © 2020 zqj. All rights reserved.
//
#import <CoreMedia/CoreMedia.h>
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^NV12FrameBlock) (NSInteger length,uint8_t * address,NSInteger row,NSInteger w,NSInteger h);

@interface AVDClientBufferSocketManager : NSObject

//<**共享屏幕数据回调**/
@property(nonatomic, copy) NV12FrameBlock nv12FrameBlock;


/**
 单列类初始化
 @return AVDClientBufferSocketManager *
 */
+ (AVDClientBufferSocketManager *)sharedManager;


/**
 停止socket
 */
- (void)stopSocket;


/**
 启动socket
 */
- (void)setupSocket;



@end

NS_ASSUME_NONNULL_END
